package com.definesys.smecrailtransit.module.SiteDetails.Fragment;

import com.prolificinteractive.materialcalendarview.CalendarDay;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by cjy on 2017/8/29.
 */

public class DateController {
    private String nowDate;
    private String from;
    private String to;
    private String type;
    private List<CalendarDay> dateList;
    public DateController(String type){

        this.type = type;

        //获取系统时间
        SimpleDateFormat sDateFormat =  new SimpleDateFormat("yyyy-MM-dd");
        this.nowDate = sDateFormat.format(new Date());
        this.from = "2017-07-01";
        this.to = this.nowDate;
    }

    public String getNowDate() {
        return nowDate;
    }

    public void setNowDate(String nowDate) {
        this.nowDate = nowDate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }


    public List<CalendarDay> getDateList() {
        return dateList;
    }

    public void setDateList(List<CalendarDay> dateList) {
        this.dateList = dateList;
    }
}
